//
//  KSFilterAppearance.swift
//  ANOA
//
//  Created by 邱仙凯 on 2024/12/16.
//  Copyright © 2024 zwb. All rights reserved.
//

import UIKit

enum KSFType {
    case searchAndReset , // 查询  重置
        modify, // 简易输入
     onlySearch  // 只有查询
}

 
 
class KSFilterAppearance:NSObject {
    // 重置  查询 按钮的 圆角度数
     var cornerRadius:CGFloat = 5
    @discardableResult
    func cornerRadius(_ value:CGFloat) -> KSFilterAppearance {
        self.cornerRadius = value
        return self
    }
    // 控件高度
     var bgHeight:CGFloat = 400
    @discardableResult
    func bgHeight(_ value:CGFloat) -> KSFilterAppearance {
        self.bgHeight = value
        return self
    }
    // 类型
     var fType:KSFType = .searchAndReset
    @discardableResult
    func fType(_ value:KSFType) -> KSFilterAppearance {
        self.fType = value
        return self
    }
    
    // 类型
     var borderColor:UIColor = .lightGray
    @discardableResult
    func borderColor(_ value:UIColor) -> KSFilterAppearance {
        self.borderColor = value
        return self
    }
    
    // 日期专用
     var infoDic:[String:String]?
    @discardableResult
    func infoDic(_ value:[String:String]) -> KSFilterAppearance {
        self.infoDic = value
        return self
    }
 }
